﻿<root preserve-whitespace="no">
	<legendes />
	<infos>
		<creationDate>21/08/2012 21:42:06</creationDate>
		<modificationDate>03/07/2014 15:31:45</modificationDate>
		<revision>21</revision>
	</infos>
	<code>
		<template path="/CodeCommander" name="Loop">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>value</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>1</expression>
				</affectation>
				<condition>
					<expression>$counter &lt; ($value+1)</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>continue</label>
				<handler name="body" />
				<affectation>
					<variable>$counter</variable>
					<expression>$counter + 1</expression>
				</affectation>
				<condition>
					<expression>$counter &lt; ($value+1)</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopInverse">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>value</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$value</expression>
				</affectation>
				<condition>
					<expression>$counter &gt; 0</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>continue</label>
				<handler name="body" />
				<affectation>
					<variable>$counter</variable>
					<expression>$counter - 1</expression>
				</affectation>
				<condition>
					<expression>$counter &gt; 0</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopWhile">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>continue</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<affectation>
					<variable>$counter</variable>
					<expression>$counter + 1</expression>
				</affectation>
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopConditionalWhile">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
				<param>condition</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>continue</label>
				<affectation>
					<variable>$condition</variable>
					<expression>true</expression>
				</affectation>
				<handler name="condition" />
				<condition>
					<expression>$condition</expression>
					<iftrue>ok</iftrue>
					<iffalse>jump</iffalse>
				</condition>
				<label>ok</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<label>jump</label>
				<affectation>
					<variable>$counter</variable>
					<expression>$counter + 1</expression>
				</affectation>
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopUntil">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<label>continue</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<affectation>
					<variable>$counter</variable>
					<expression>$counter + 1</expression>
				</affectation>
				<condition>
					<expression>$limit</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopConditionalUntil">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
				<param>condition</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<label>continue</label>
				<affectation>
					<variable>$condition</variable>
					<expression>true</expression>
				</affectation>
				<handler name="condition" />
				<condition>
					<expression>$condition</expression>
					<iftrue>ok</iftrue>
					<iffalse>jump</iffalse>
				</condition>
				<label>ok</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<label>jump</label>
				<affectation>
					<variable>$counter</variable>
					<expression>$counter + 1</expression>
				</affectation>
				<condition>
					<expression>$limit</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopWithWhile">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<affectation>
					<variable>$limit</variable>
					<expression>true</expression>
				</affectation>
				<handler name="limit" />
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>continue</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<handler name="increment" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<affectation>
					<variable>$limit</variable>
					<expression>true</expression>
				</affectation>
				<handler name="limit" />
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopWithConditionalWhile">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
				<param>condition</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<affectation>
					<variable>$limit</variable>
					<expression>true</expression>
				</affectation>
				<handler name="limit" />
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>continue</label>
				<affectation>
					<variable>$condition</variable>
					<expression>true</expression>
				</affectation>
				<affectation>
					<variable>$nameIncrementDone</variable>
					<expression>false</expression>
				</affectation>
				<handler name="condition" />
				<condition>
					<expression>$condition</expression>
					<iftrue>ok</iftrue>
					<iffalse>jump</iffalse>
				</condition>
				<label>ok</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<handler name="increment" />
				<affectation>
					<variable>$nameIncrementDone</variable>
					<expression>true</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<label>jump</label>
				<condition>
					<expression>$nameIncrementDone</expression>
					<iftrue>step</iftrue>
					<iffalse>doIncrement</iffalse>
				</condition>
				<label>doIncrement</label>
				<handler name="increment" />
				<label>step</label>
				<affectation>
					<variable>$limit</variable>
					<expression>true</expression>
				</affectation>
				<handler name="limit" />
				<condition>
					<expression>$limit</expression>
					<iftrue>continue</iftrue>
					<iffalse>end</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopWithUntil">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<label>continue</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<handler name="increment" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<affectation>
					<variable>$limit</variable>
					<expression>true</expression>
				</affectation>
				<handler name="limit" />
				<condition>
					<expression>$limit</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="LoopWithConditionalUntil">
			<legendes />
			<params>
				<param>name</param>
				<param>counter</param>
				<param>init</param>
				<param>limit</param>
				<param>condition</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<affectation>
					<variable>$limit</variable>
					<expression>true</expression>
				</affectation>
				<label>continue</label>
				<affectation>
					<variable>$nameIncrementDone</variable>
					<expression>false</expression>
				</affectation>
				<affectation>
					<variable>$condition</variable>
					<expression>true</expression>
				</affectation>
				<handler name="condition" />
				<condition>
					<expression>$condition</expression>
					<iftrue>ok</iftrue>
					<iffalse>jump</iffalse>
				</condition>
				<label>ok</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<handler name="increment" />
				<affectation>
					<variable>$nameIncrementDone</variable>
					<expression>true</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<label>jump</label>
				<condition>
					<expression>$nameIncrementDone</expression>
					<iftrue>step</iftrue>
					<iffalse>doIncrement</iffalse>
				</condition>
				<label>doIncrement</label>
				<handler name="increment" />
				<label>step</label>
				<affectation>
					<variable>$limit</variable>
					<expression>true</expression>
				</affectation>
				<handler name="limit" />
				<condition>
					<expression>$limit</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="ForEach">
			<legendes />
			<params>
				<param>name</param>
				<param>tabName</param>
				<param>init</param>
				<param>counter</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<size>
					<terme>$nameSize</terme>
					<tableau>$tabName</tableau>
				</size>
				<condition>
					<expression>$counter &gt; $nameSize</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>continue</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<affectation>
					<variable>$counter</variable>
					<expression>$counter + 1</expression>
				</affectation>
				<condition>
					<expression>$counter &gt; $nameSize</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="ForEachConditional">
			<legendes />
			<params>
				<param>name</param>
				<param>tabName</param>
				<param>init</param>
				<param>counter</param>
				<param>condition</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$counter</variable>
					<expression>$init</expression>
				</affectation>
				<affectation>
					<variable>$nameFirst</variable>
					<expression>true</expression>
				</affectation>
				<size>
					<terme>$nameSize</terme>
					<tableau>$tabName</tableau>
				</size>
				<condition>
					<expression>$counter &gt; $nameSize</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>continue</label>
				<affectation>
					<variable>$condition</variable>
					<expression>true</expression>
				</affectation>
				<handler name="condition" />
				<condition>
					<expression>$condition</expression>
					<iftrue>ok</iftrue>
					<iffalse>jump</iffalse>
				</condition>
				<label>ok</label>
				<condition>
					<expression>$nameFirst</expression>
					<iftrue>first</iftrue>
					<iffalse>next</iffalse>
				</condition>
				<label>next</label>
				<handler name="next" />
				<label>first</label>
				<handler name="body" />
				<affectation>
					<variable>$nameFirst</variable>
					<expression>false</expression>
				</affectation>
				<label>jump</label>
				<affectation>
					<variable>$counter</variable>
					<expression>$counter + 1</expression>
				</affectation>
				<condition>
					<expression>$counter &gt; $nameSize</expression>
					<iftrue>end</iftrue>
					<iffalse>continue</iffalse>
				</condition>
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="Search">
			<legendes />
			<params>
				<param>name</param>
				<param>tabName</param>
				<param>start</param>
				<param>fieldSearch</param>
				<param>valueToSearch</param>
				<param>result</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<size>
					<terme>$nameMax</terme>
					<tableau>$tabName</tableau>
				</size>
				<usetemplate name="/CodeCommander/LoopWithWhile">
					<params>
						<param name="name">$nameWhile</param>
						<param name="counter">$nameIndex</param>
						<param name="init">$start</param>
						<param name="limit">$nameLimit</param>
					</params>
					<codings>
						<coding name="increment" indent="1">
							<code>
								<affectation indent="2">
									<variable>$nameIndex</variable>
									<expression>$nameIndex + 1</expression>
								</affectation>
							</code>
						</coding>
						<coding name="limit" indent="1">
							<code>
								<usetemplate name="/CodeCommander/Condition" indent="2">
									<params>
										<param name="name">$nameC1</param>
										<param name="condition">$nameIndex&amp;gt;$nameMax</param>
									</params>
									<codings>
										<coding name="true" indent="3">
											<code>
												<affectation indent="4">
													<variable>$nameLimit</variable>
													<expression>false</expression>
												</affectation>
											</code>
										</coding>
										<coding name="false" indent="3">
											<code>
												<affectationchamp indent="4">
													<variable>$nameTest</variable>
													<champ>
														<tableau>$tabName</tableau>
														<expression>$nameIndex</expression>
														<variable>$fieldSearch</variable>
													</champ>
												</affectationchamp>
												<usetemplate name="/CodeCommander/Condition" indent="4">
													<params>
														<param name="name">$nameC2</param>
														<param name="condition">$nameTest?$valueToSearch</param>
													</params>
													<codings>
														<coding name="true" indent="5">
															<code>
																<affectation indent="6">
																	<variable>$result</variable>
																	<expression>$nameIndex</expression>
																</affectation>
																<affectation indent="6">
																	<variable>$nameLimit</variable>
																	<expression>false</expression>
																</affectation>
															</code>
														</coding>
													</codings>
												</usetemplate>
											</code>
										</coding>
									</codings>
								</usetemplate>
							</code>
						</coding>
					</codings>
				</usetemplate>
				<endprocess>$name</endprocess>
				<affectation>
					<variable>$result</variable>
					<expression>0</expression>
				</affectation>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="Condition">
			<legendes />
			<params>
				<param>name</param>
				<param>condition</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<condition>
					<expression>$condition</expression>
					<iftrue>then</iftrue>
					<iffalse>else</iffalse>
				</condition>
				<label>then</label>
				<handler name="true" />
				<condition>
					<expression>true</expression>
					<iftrue>end</iftrue>
					<iffalse>fake</iffalse>
				</condition>
				<label>else</label>
				<handler name="false" />
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="WithCondition">
			<legendes />
			<params>
				<param>name</param>
				<param>condition</param>
			</params>
			<code>
				<beginprocess>$name</beginprocess>
				<affectation>
					<variable>$condition</variable>
					<expression>true</expression>
				</affectation>
				<handler name="condition" />
				<condition>
					<expression>$condition</expression>
					<iftrue>then</iftrue>
					<iffalse>else</iffalse>
				</condition>
				<label>then</label>
				<handler name="true" />
				<condition>
					<expression>true</expression>
					<iftrue>end</iftrue>
					<iffalse>fake</iffalse>
				</condition>
				<label>else</label>
				<handler name="false" />
				<label>end</label>
				<endprocess>$name</endprocess>
				<call>$name</call>
			</code>
		</template>
		<template path="/CodeCommander" name="Writer">
			<legendes>
				<item context="" name="file" type="String" expression="" commentaire="Indiquer le nom du fichier sans l'extension">Nom du fichier</item>
				<item context="" name="$file" type="String" expression="" commentaire="Indiquer le nom du fichier sans l'extension">Nom du fichier</item>
			</legendes>
			<params>
				<param>writer</param>
				<param>extension</param>
			</params>
			<code>
				<affectationchaine>
					<variable>fileName</variable>
					<chaine>file</chaine>
				</affectationchaine>
				<createwriter name="$writer">
					<file>
						<expression>fileName.$extension</expression>
					</file>
				</createwriter>
				<defaultwriter name="$writer" />
			</code>
		</template>
	</code>
</root>